package com.controller.security;

import com.service.IdempotentService;
import com.vo.ResponseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SecurityController {
    @Autowired
    private IdempotentService idempotentService;
    @RequestMapping("/token")
    public ResponseVO<String> getToken(){
        String token = idempotentService.token();
        return new ResponseVO<>(200, "ok", token);
    }
}
